<template>
	<u-picker :show="show" :columns="columns" :keyName="keyName" :closeOnClickOverlay="true" confirmColor="#FF2D71"
		@close="$emit('close')" @cancel="$emit('close')" @confirm="$emit('confirm',$event)"></u-picker>
</template>
<script>
	export default {
		name: "picker",
		data() {
			return {};
		},
		// 此处定义传入的参数
		props: {
			// 显示/隐藏
			show: {
				type: Boolean,
				default: (() => {
					return false;
				})
			},
			// 选择列表
			columns: {
				type: Array,
				default: (() => {
					return [];
				})
			},
			// 选择项
			keyName: {
				type: String,
				default: (() => {
					return '';
				})
			}
		},
		created() {},
		mounted() {},
		methods: {},
	}
</script>
<style lang="scss">
</style>